package com.youbang.bsMgr.permission.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.youbang.bsMgr.permission.model.PermissionEntity;


@Component
public class PermissionDao {
    @Autowired
    private PermissionMapper mapper;
    

    public PermissionEntity queryEntity(Long id) throws Exception {
        PermissionEntity entity = mapper.queryEntity(id);
        if(entity ==null){
            return new PermissionEntity();
        }
        return entity;
    }

}
